package com.hucheng.rest.task;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hucheng.common.response.ServiceCoreVO;
import com.hucheng.reconciliation.service.AlipayOrderService;
import com.hucheng.rest.base.BaseAction;
import org.springframework.stereotype.Controller;

/**
 * @Author: 凉白开不加冰
 * @Version: 0.0.1V
 * @Date: 2019-07-26
 * @Description: 定时任务对账
 **/
@Controller("reconciliationAction")
public class ReconciliationAction extends BaseAction{

    @Reference
    private AlipayOrderService alipayOrderService;
    /**
     * 下载对账单
     * @return
     */
    public ServiceCoreVO downloadurlV100() throws Exception {

        alipayOrderService.downloadOrderAccount();

        return response();
    }

    public ServiceCoreVO reconcilicationByDayV100(){
        alipayOrderService.taskRun();
        return response();
    }
}
